<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>페이스북 사용자 등록</title>
<script type="text/javascript">
function fn_save() {
	if(document.frm.facebookEmail.value=='') {
		alert('페이스북 이메일을 입력하세요.');
		document.frm.facebookEmail.focus();
		return false;
	}
	if(document.frm.facebookPassword.value=='') {
		alert('페이스북 암호를 입력하세요.');
		document.frm.facebookPassword.focus();
		return false;
	}
	return true;
}
</script>
</head>
<body>
	<form name="frm" action="insertUser.jsp" method="post" onsubmit="return fn_save();">
		<table>
			<tr>
				<th><label for="facebookEmail">페이스북 이메일</label></th>
				<td><input name="facebookEmail" id="facebookEmail" /></td>
			</tr>
			<tr>
				<th><label for="facebookPassword">페이스북 암호</label></th>
				<td><input name="facebookPassword" id="facebookPassword" /></td>
			</tr>
			<tr>
				<td></td>
				<td>
					<input type="submit" value="등록" /> 
					<a href="javascript:history.back();">취소</a>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>